package edu.zqu.course.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.zqu.course.project.domain.pojo.CourseSyllabusContent;
import edu.zqu.course.response.ChapterShow;

import java.util.List;

/**
 * <p>
 * 课程大纲明细，即：知识点 服务类
 * </p>
 *
 * @author 郭泽鹏
 * @since 2020-06-24
 */
public interface CourseSyllabusContentService extends IService<CourseSyllabusContent> {
    /**
     * 查询所有
     */
    public List<CourseSyllabusContent> getCourseSyllabusContentList();

    /**
     * 章展示：通过课程大纲id和章序号查询
     */
    public List<ChapterShow> getChapterShowById(String id,
                                                Integer page, Integer size);

    /**
     * 删除操作
     * 删除所有
     */
    public Integer deleteCSCs();

    /**
     * 通过节id进行删除
     */
    public Integer deleteByCSCId(Long id);

    /**
     * 添加操作
     */
    public Integer insertCourseSyllabusContent(CourseSyllabusContent courseSyllabusContent);
}
